# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils flag-o-matic

DESCRIPTION="PXE daemon"

HOMEPAGE="http://www.kano.org.uk/projects/pxe/"
SRC_URI="http://www.kano.org.uk/projects/pxe/${P}.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~amd64 ~x86"

IUSE=""

DEPEND=""

RDEPEND="${DEPEND}"

src_compile() {
	strip-flags

	econf \
		--with-log=/var/log/pxe/pxe.log \
		|| die "Configure failed!"

	emake || die "Make failed!"
}

src_install() {
	exeinto /usr/sbin
	doexe pxe
	insinto /etc
	doins pxe.conf
	keepdir /var/log/pxe
	fowners nobody:nobody /var/log/pxe
	dodoc INSTALL Changes LICENCE README THANKS
}
